package com.dongyun.loraweb.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity
public class LoraBaseStationPass extends DomainObject {
	private String identifier;
	private String name;
	private Integer pass=1;
	@ManyToOne
	private LoraBaseStation loraBaseStation;
	@OneToMany
	private List<LoraDevice> loraDevices=new ArrayList<>();
	
	public String getIdentifier() {
		return identifier;
	}
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public LoraBaseStation getLoraBaseStation() {
		return loraBaseStation;
	}
	public void setLoraBaseStation(LoraBaseStation loraBaseStation) {
		this.loraBaseStation = loraBaseStation;
	}
	public List<LoraDevice> getLoraDevices() {
		return loraDevices;
	}
	public void setLoraDevices(List<LoraDevice> loraDevices) {
		this.loraDevices = loraDevices;
	}
	public Integer getPass() {
		return pass;
	}
	public void setPass(Integer pass) {
		this.pass = pass;
	}
}
